
package org.bridgen.lang.semantics.ast;
import java.util.*;


public class AbstractReefDecl extends ReefDecl implements Cloneable {
    public void flushCache() {
        super.flushCache();
    }
     @SuppressWarnings({"unchecked", "cast"})  public AbstractReefDecl clone() throws CloneNotSupportedException {
        AbstractReefDecl node = (AbstractReefDecl)super.clone();
        node.in$Circle(false);
        node.is$Final(false);
    return node;
    }
     @SuppressWarnings({"unchecked", "cast"})  public AbstractReefDecl copy() {
      try {
          AbstractReefDecl node = (AbstractReefDecl)clone();
          if(children != null) node.children = (ASTNode[])children.clone();
          return node;
      } catch (CloneNotSupportedException e) {
      }
      System.err.println("Error: Could not clone node of type " + getClass().getName() + "!");
      return null;
    }
     @SuppressWarnings({"unchecked", "cast"})  public AbstractReefDecl fullCopy() {
        AbstractReefDecl res = (AbstractReefDecl)copy();
        for(int i = 0; i < getNumChildNoTransform(); i++) {
          ASTNode node = getChildNoTransform(i);
          if(node != null) node = node.fullCopy();
          res.setChild(node, i);
        }
        return res;
    }
    // Declared in PrettyPrint.jrag at line 132

    

	public void pp(StringBuffer buf) {
    	buf.append(indent() + "abstract ");
    	super.pp(buf);
    	buf.append(";\n");
    }

    // Declared in bridgit.ast at line 3
    // Declared in bridgit.ast line 29

    public AbstractReefDecl() {
        super();

        setChild(new Opt(), 0);

    }

    // Declared in bridgit.ast at line 11


    // Declared in bridgit.ast line 29
    public AbstractReefDecl(String p0, Opt<NodeUse> p1) {
        setName(p0);
        setChild(p1, 0);
    }

    // Declared in bridgit.ast at line 16


  protected int numChildren() {
    return 1;
  }

    // Declared in bridgit.ast at line 19

  public boolean mayHaveRewrite() { return false; }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 20
    public void setName(String value) {
        tokenString_Name = value;
    }

    // Declared in bridgit.ast at line 5

    public String getName() {
        return tokenString_Name != null ? tokenString_Name : "";
    }

    // Declared in bridgit.ast at line 2
    // Declared in bridgit.ast line 20
    public void setSuperNodeOpt(Opt<NodeUse> opt) {
        setChild(opt, 0);
    }

    // Declared in bridgit.ast at line 6


    public boolean hasSuperNode() {
        return getSuperNodeOpt().getNumChild() != 0;
    }

    // Declared in bridgit.ast at line 10


     @SuppressWarnings({"unchecked", "cast"})  public NodeUse getSuperNode() {
        return (NodeUse)getSuperNodeOpt().getChild(0);
    }

    // Declared in bridgit.ast at line 14


    public void setSuperNode(NodeUse node) {
        getSuperNodeOpt().setChild(node, 0);
    }

    // Declared in bridgit.ast at line 17

     @SuppressWarnings({"unchecked", "cast"})  public Opt<NodeUse> getSuperNodeOpt() {
        return (Opt<NodeUse>)getChild(0);
    }

    // Declared in bridgit.ast at line 21


     @SuppressWarnings({"unchecked", "cast"})  public Opt<NodeUse> getSuperNodeOptNoTransform() {
        return (Opt<NodeUse>)getChildNoTransform(0);
    }

    // Declared in TypeAnalysis.jrag at line 87
 @SuppressWarnings({"unchecked", "cast"})     public boolean isAbstract() {
        boolean isAbstract_value = isAbstract_compute();
        return isAbstract_value;
    }

    private boolean isAbstract_compute() {  return true;  }

public ASTNode rewriteTo() {
    return super.rewriteTo();
}

}
